package routers

import (
	"autoclave/global"
	"github.com/gin-gonic/gin"
	"path"
)

func GinConfigure(r *gin.Engine) {
	// 静态文件
	r.Static("/static", global.StaticPath)
	r.Static("/upload", path.Join(global.StaticPath, "upload"))
	//r.StaticFile("/MP_verify_6zPTYlHxnIHuVKAF.txt", "./static/MP_verify_6zPTYlHxnIHuVKAF.txt")
	r.StaticFile("/favicon.ico", path.Join(global.StaticPath, "favicon.ico"))
	r.StaticFile("/robots.txt", path.Join(global.StaticPath, "robots.txt"))
	//r.Use(Cors())

}
